import { request } from 'umi';
interface Iparams {
    id: number,
    disabled: boolean,
}
//获取房屋列表
export let getHouselist = (params: any) => {
    return request('admin/houses', params)
};
//上架下架
export let isflag = (params: Iparams) => {
    let { id, disabled } = params;
    return request(`admin/houses/${id}`, {
        method: "PATCH",
        disabled
    })
}